package com.four.controller;

import com.four.service.MsmService;
import com.four.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/edumsm")
//@CrossOrigin(allowCredentials = "true")
public class MsmController {

    @Autowired
    private MsmService msmService;

//    @GetMapping("/send/{phone}")  @PathVariable("phone")
    @GetMapping("/send/{phone}")
    public Result send(@PathVariable("phone") String phone){
        msmService.send(phone);
        return new Result(200,"发送成功");
    }
}